#include "coverpage.h"
#include "ui_coverpage.h"
#include "eventcenter.h"
#include "UIEditor/uilib.h"
#include "UIEditor/mybutton.h"
CoverPage::CoverPage(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::CoverPage)
{
    ui->setupUi(this);
    Init();
}

CoverPage::~CoverPage()
{
    delete ui;
}

void CoverPage::Init()
{
    ui->beginGameBtn->SetSelectedDisabled(true);
    QString name = "封面-开始游戏";
    if(UILib::Instance().btns.contains(name) && UILib::Instance().btns[name])
    {
        ui->beginGameBtn->info = UILib::Instance().btns[name];
        ui->beginGameBtn->Refresh(ui->beginGameBtn->info);
        ui->beginGameBtn->Refresh(ui->beginGameBtn->info);
    }
}

